package com.example.demo.service;

import com.example.demo.mapper.UserInfoMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
@Transactional
public class UserService {
    @Autowired
    private UserInfoMapper userInfoMapper;

    public Integer insert(String username,String password){
       int flag = userInfoMapper.insert(username,password);
        return flag;
    }

}
